package com.tianji.learning.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tianji.learning.entity.po.Note;
import org.apache.ibatis.annotations.Param;


/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 柠檬不萌
 */
public interface NoteMapper extends BaseMapper<Note> {

    /**
     * 否则查询所有的笔记
     *
     * @param p
     * @param userId
     * @param courseId
     * @param sectionId
     * @return
     */
    Page<Note> queryNotePageBySectionId(Page<Note> p,
                                        @Param("userId") Long userId,
                                        @Param("courseId") Long courseId,
                                        @Param("sectionId") Long sectionId);
}
